package main

import (
	"net/http"

	mux "github.com/julienschmidt/httprouter"
)

func NewRouter() *mux.Router {
	router := mux.New()

	for _, route := range routes {

		router.Handle(route.Method, route.Pattern, route.Handle)
	}

	return router

}
func main() {
	v := NewRouter()
	http.ListenAndServe(":12345", v)
}
